import { createApp } from 'vue'
import './root.css'
import App from './App.vue'
import ElementPlus from 'element-plus' // element-plus
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' // pinia持久化插件
import './styles/theme.scss'
import router from './router'
const app = createApp(App)

// 创建 Pinia 实例
const pinia = createPinia()
// 使用持久化插件
pinia.use(piniaPluginPersistedstate)

app
    .use(ElementPlus)
    .use(pinia)
    .use(router)
    .mount('#app')